package com.meteor.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Blog {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String picture;

    private String title;

    @TableField(fill = FieldFill.INSERT) //插入时自动填充
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE) //插入和更新时自动填充
    private LocalDateTime updateTime;

    private String content;

    private Integer views;

    private Integer typeId;

    private String description;


}
